From: Richard M. Stallman Date: Wed, 7 Apr 1993 20:08:55 +0000 (+0000) Subject: (search_buffer): Fix typo in previous change. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96585 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=42db823b21c53ae65257106aff433c83ecb0d2d5;p=emacs.git (search_buffer): Fix typo in previous change. --- diff --git a/src/search.c b/src/search.c index fdf19fe656e..86a8977c5ab 100644 --- a/src/search.c +++ b/src/search.c @@ -670,11 +670,12 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt) } while (n < 0) { + int val; BLOCK_INPUT; - int val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2, - pos - BEGV, lim - pos, &search_regs, - /* Don't allow match past current point */ - pos - BEGV); + val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2, + pos - BEGV, lim - pos, &search_regs, + /* Don't allow match past current point */ + pos - BEGV); UNBLOCK_INPUT; if (val == -2) matcher_overflow (); @@ -700,10 +701,11 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt) } while (n > 0) { + int val; BLOCK_INPUT; - int val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2, - pos - BEGV, lim - pos, &search_regs, - lim - BEGV); + val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2, + pos - BEGV, lim - pos, &search_regs, + lim - BEGV); UNBLOCK_INPUT; if (val == -2) matcher_overflow ();